#! /bin/bash

if [ ! -f $target/etc/resolv.conf ]; then
    sed -i /^distroverpkg/a\proxy=$YUMPROXY $target/etc/yum.conf
fi

if [ -n "$YUMPROXY" ]; then
    echo "proxy=$YUMPROXY" >> $target/etc/yum.conf
else
    sed -i /^proxy/d $target/etc/yum.conf
fi

if [ X$verbose = X1 ]; then
	echo "Updating base"
	$ROOTCMD yum -y update |& tee -a $LOGDIR/software.log
else
	$ROOTCMD yum -y update >> $LOGDIR/software.log
fi

skiptask updatebase
